﻿using System.Collections.Generic;
using System.Web.UI.WebControls;
using Ue.Infrastructure.RepositoryFramework;
using Ue.Infrastructure.DomainBase;

namespace Ue.Qcdz.Domain.Membership
{
    public interface IUserRepository : IRepository<User>
    {
        User FindBy(string userName);
        void ChangeStatus(EntityState state,string userId);
        IList<User> GetUsersInRole(string roleName);
        //IList<User> FindUsersInRole(string roleName, string usernameToMatch);
    }

    public class UserDataQuery : Ue.Infrastructure.DomainBase.IDataQuery
    {
        public string Name { get; set; }

        public string Password { get; set; }

        #region IDataQuery 成员

        public int PageIndex
        {
            get { throw new System.NotImplementedException(); }
        }

        public int PageSize
        {
            get { throw new System.NotImplementedException(); }
        }

        public ISort Sort
        {
            get { throw new System.NotImplementedException(); }
        }

        #endregion
    }
}
